package com.dckeji.shiplock.webapp.service.impl;

import com.dckeji.shiplock.webapp.dao.IEvalDao;
import com.dckeji.shiplock.webapp.pojo.Evaluate;
import com.dckeji.shiplock.webapp.service.IEvalService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * Created with IntelliJ IDEA.
 * User: TianWei
 * Date: 2017/8/8
 * Time: 14:29
 */
@Service
public class EvalServiceImpl implements IEvalService {

    @Autowired
    IEvalDao evalDao;

    @Override
    public int commitShipLockList(List<Evaluate> evaluates) {


        return evalDao.commitShipLockList(evaluates);
    }

    @Override
    public List<Evaluate> queryTime(Evaluate evaluate) {
        return evalDao.queryTime(evaluate);
    }

    @Override
    public List<Evaluate> queryEvaluateInfos(Evaluate evaluate) {
        return evalDao.queryEvaluateInfos(evaluate);
    }

    public static void main(String[] args) {

        System.out.println(System.currentTimeMillis());
    }
}
